import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-09-27
 * Time: 22:22
 */
public class Exam927 {
    public static void main(String[] args) {
        int n;
        Scanner scanner = new Scanner(System.in);
        n = scanner.nextInt();
        int[] ints = new int[n];
        for (int i = 0; i < n; i++) {
            ints[i] = scanner.nextInt();
        }
        int max = 0;
        for (int i = 0; i < n; i++) {
            int sum = 0;
            for (int j = 0; j < i; j++) {

            }
        }
    }
    public static boolean Judge(char[] chars) {
        int len = chars.length;
        int i = 0;
        int j = len - 1;
        while (i < j) {
            if(chars[i] != chars[j]) {
                return false;
            }
            i++;
            j--;
        }
        return true;
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String string1 = scanner.nextLine();
        String string2 = scanner.nextLine();
        char[] chars1 = string1.toCharArray();
        char[] chars2 = string2.toCharArray();
        int len1 = chars1.length;
        int len2 = chars2.length;
        int count = 0;
        char[] chars = new char[len1 + len2];
        int tmp = 0;
        while(tmp <= len1) {
            int k = 0;
            for (int i = 0; i < tmp; i++) {
                chars[k++] = chars1[i];
            }
            for (int i = 0; i < len2; i++) {
                chars[k++] = chars2[i];
            }
            for (int i = tmp; i < len1; i++) {
                chars[k++] = chars1[i];
            }
            if (Judge(chars)) {
                count++;
            }
            tmp++;
        }
        System.out.println(count);
    }
}
